#ifndef CALCULATE_H
#define CALCULATE_H
#define _CRT_SECURE_NO_WARNINGS
#include <fstream>
#include <iostream>
#include <iomanip>
#include "GlobalMainVars.h"
#include "struct.h"
#include "igl/triangle/triangulate.h"
#include "igl/copyleft/tetgen/tetrahedralize.h"
#include "Eigen/Core"
#include "Eigen/Dense"
#include "mesh.hpp"

bool compare_coord(COORD_STRUCT* v1, COORD_STRUCT* v2);
bool compare(DATA_STRUCT* a, DATA_STRUCT* b);
void cell_data_average(double* data, double* res);
void define_type();
void Tetrahedralization();

#endif
